package ru.incoremedia.gwttest.core.client.util;

import com.google.gwt.core.client.RunAsyncCallback;


public abstract class MyRunAsyncCallback implements RunAsyncCallback {

    @Override
    public void onFailure(Throwable reason) {
        AsyncUtils.onFailure(reason);
    }

    @Override
    public void onSuccess() {
        doSuccess();
        AsyncUtils.onSucess();
    }

    abstract public void doSuccess();

}
